﻿using BCEntity.WeChatComponent.WeChatNewsImageRecord;
using System;
using System.Collections.Generic;
using System.Text;

namespace BCData.WeChatComponent.WeChatNewsImageRecord
{
    /// <summary>
    /// 微信图文内部图片记录数据处理接口
    /// </summary>
    public interface IWeChatNewsImageRecordData
    {
        /// <summary>
        /// 添加微信图文内部图片记录
        /// </summary>
        /// <param name="weChatNewsImageRecordEntity">微信图文内部图片记录信息</param>
        /// <returns></returns>
        WeChatNewsImageRecordViewEntity Add(WeChatNewsImageRecordEntity weChatNewsImageRecordEntity);
        /// <summary>
        /// 获取微信图文内部图片记录
        /// </summary>
        /// <param name="uploadFileRecordNo">上传文件记录编号</param>
        /// <returns></returns>
        WeChatNewsImageRecordViewEntity Get(string uploadFileRecordNo);
        /// <summary>
        /// 获取微信图文内部图片记录
        /// </summary>
        /// <param name="weChatNewsImageRecordId">微信图文信息内部图片记录Id</param>
        /// <returns></returns>
        WeChatNewsImageRecordViewEntity Get(long weChatNewsImageRecordId);
        /// <summary>
        /// 获取微信图文内部图片记录列表
        /// </summary>
        /// <param name="start">开始时间</param>
        /// <param name="end">结束时间</param>
        /// <param name="dataCount">数据总数</param>
        /// <param name="ascending">排序</param>
        /// <param name="pageIndex">当前页码</param>
        /// <param name="pageSize">每页数据条数</param>
        /// <returns></returns>
        IEnumerable<WeChatNewsImageRecordViewEntity> Get(DateTime? start,DateTime? end, out int dataCount, bool? ascending, int pageIndex=1, int pageSize=10);
    }
}
